<?php 

namespace app\common\validate\record;

use think\Validate;

class RecordCheckWork extends Validate 
{ 
    protected $rule = [
        'uid' => 'require',
        'day' => 'require',
        'start_time' => 'require',
        'end_time' => 'require',
    ];

    protected $message = [
        'uid.require' => '请输入用户ID',
        'day.require' => '请输入日期',
        'start_time.require' => '请输入打卡开始时间',
        'end_time.require' => '请输入打卡结束时间',
    ];

    protected $scene = [
        'edit' => ['uid','day','start_time','end_time','is_overtime','is_late','is_leave_early','is_absence_duty','vacation_id','completion_task_id','supply_card_id','check_work_type','reward_punishment_type','price','admin_name','id'],
        'add' => ['uid','day','start_time','end_time','is_overtime','is_late','is_leave_early','is_absence_duty','vacation_id','completion_task_id','supply_card_id','check_work_type','reward_punishment_type','price','admin_name'],
    ];

} 
